<?php if (!defined('THINK_PATH')) exit();?><!--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="image/home.gif" type="images/x-icon"/>
<title>Iruiyou Moon Log !</title>
<script src="<?php echo (C("web_root")); ?>Public/js/jquery-1.8.3.min.js"></script>
<link href ="<?php echo (C("web_root")); ?>Public/css/indexCsss.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body{background-color:#EEE; margin:0; padding:0; font-size:16px; font-family:"微软雅黑"; opacity:0;}
div{margin:0; padding:0;}
ul{ list-style:none; margin:0; padding:0;}

#wrap{
	width:100%; height:auto;
	position:relative;
}
#leftMenu{
	background-color:#069;
	width:300px; height:600px;
	position:absolute;
	top:0px; left:0px;
	position:fixed;
	z-index:10;
}
#leftHeader{
	width:300px; height:50px;
	background-color:#058;
	margin-bottom:10px;
}
#ul01{
	list-style:none;
	margin:0; padding:0;
}
#ul01 li{
	width:200px; height:30px;
	background-color:#FFE;
	color:#069;
	border-radius:2px;
	padding-top:10px;
	margin-bottom:7px;
	cursor:default;
}

#ul02{
	list-style:none;
	margin:0; padding:0;
	margin-top:100px;
	font-size:15px;
}
#ul02 li{
	width:200px; height:25px;
	background-color:#099;
	color:#FFF;
	border-radius:2px;
	padding-top:5px;
	margin-bottom:5px;
	cursor:default;
}

#rightIframe{
	width:auto; height:auto;
	position:absolute;
	top:0px; left:300px;
	background-color:#EEF;
}
#rightHeader{
	width:auto; height:50px;
	background-color:#069;
	position:fixed;
	z-index:2;
}
#masking{
	width:auto; height:50px;
	background-color:#EEE;
	position:fixed; top:50px;
	z-index:0;
}
#userDiv{
	width:150px;; height:100%;
	padding:0px 0 0 10px;
	margin:0 100px 0 0;
	color:#FFF;
	font-size:25px;
	cursor:default;
	float:right;
	z-index:10;
	white-space:nowrap;
}
#userDiv ul{
	width:auto; height:100px;
	text-align:center;
}
#userDiv #liUserName{
	width:auto; height:41px;
	background-color:#27A;
	padding:7px 0 0 0;
	border-bottom:#FFF 1px solid;
}
#userDiv #liUserName:hover{ background-color:#088;}
#userDiv a{color:white;}
#userDiv .userOps{
	width:auto; height:0px;
	font-size:14px; 
	text-align:center; vertical-align:middle;
	background-color:#09F;
	overflow:hidden; border-bottom:#FFF 1px solid;
}
#userDiv .userOps:hover{ background-color:#088;}
#label01{
	background-color:#3C6;
	width:300px; height:30px;
	position:absolute;
	top:0px; left:300px;
	color:#FFF;
}
.aNo{	text-decoration:none;}
.text01{
	width:110px; height:20px;
	margin:0; padding:0;
	border:#CCC 1px solid;
}
.button01{
	width:40px; height:22px;
	background-color:#FFF;
	margin:0; padding:0;
	border:#CCC 1px solid;
	color:#999;
	border-left:0;
}
.text02{ width:200px; height:25px; margin:0; padding:0;}
.button02{ width:80px; height:29px; margin:0; padding:0; border:#999 1px solid; border-left:0; background-color:#FFF;}
.tableA{
	width:90%;
	font:13px '微软雅黑';
	border-collapse:collapse;
	margin-left:30px; margin-top:10px;
	margin-top:100px;
	border-radius:3px;
}
.tableA td{
	height:30px; padding-left:20px;
	color:#069;
	border:#999 1px solid;
}
.tableA th{
	background-color:#888;
	color:#FFF;
	height:35px;
	text-align:left;
	padding-left:20px;
	letter-spacing:2px;
	font-weight:normal;
}
a{ text-decoration:none; color:#069;}


#chStyle{width:auto; position:fixed; top:60px; left:330px; white-space:nowrap; opacity:1;}
#chStyle ul{
	margin:0; padding:0;
	list-style:none;
	width:auto; height:30px;
	white-space:nowrap;
	z-index:100;
}
.chStyleli{
	width:100px; height:25px;
	background-color:#888;
	margin:0; float:left;
	cursor:default; text-align:center;
	padding:5px 0 0 0;
	color:#FFF; font-size:13px; letter-spacing:1px;
	border-right:#666 1px solid;
}
.chStyleli:hover{ background-color:#BBB;}
#chStyleli101{ border-bottom-left-radius:3px; border-top-left-radius:3px; border-right:#666 1px solid;}
#chStyleli102{ border-right:#666 1px solid;}
#chStyleli103{ border-bottom-right-radius:3px; border-top-right-radius:3px; margin-right:10px;}
#chStyleli104{ padding:0; float:left; text-align:left;}
#chStyleli105{ border-radius:3px 0 0 3px;}
#chStyle form{ width:0px; height:30px; overflow:hidden; margin:0; padding:0; margin:0;}

#serverList ul{ margin-top:8px; width:100%; height:0; opacity:1; overflow:hidden;}
#serverList li{ background-color:#069; color:white; padding:3px 0 3px 0; border-top:#FFF 1px solid;}
#serverList li:hover{ background-color:#39C;}

.text02{ width:130px; height:25px; margin:1px 0 0 0; padding:0 0 0 10px; border-radius:3px 0 0 3px; border:#666 1px solid;}
.text02:focus{ outline:none; border-color:#F63;}
.button02{ width:60px; height:27px; margin:0; padding:0; border:#666 1px solid; border-left:0; background-color:#FFF; border-radius:0 3px 3px 0; }
</style>
</head>

<body><center>
<div id="wrap" align="center">
	<div id="leftMenu" align="center">
    	<div id="leftHeader" align="center">
        	Ruiyou Logo!
        </div>
    	<ul id="ul01">
        <a href="<?php echo (C("web_root")); ?>index.php/Home/Index/chargeByChannel"><li id="li101">充值记录</li></a>
        <a href="<?php echo (C("web_root")); ?>index.php/Home/Index/getLevelLog"><li id="li102">等级记录</li></a>
        <a href="<?php echo (C("web_root")); ?>index.php/Home/Index/loginByChannel"><li id="li103">人数统计</li></a>
        <a href="<?php echo (C("web_root")); ?>index.php/Home/Index/getMission"><li id="li104">任务统计</li></a>
        <a href="<?php echo (C("web_root")); ?>index.php/Home/Index/getConsume"><li id="li105">元宝消耗</li></a>
        <a href="<?php echo (C("web_root")); ?>index.php/Home/Index/getPropGet"><li id="li106">物品产出</li></a>
        <a href="<?php echo (C("web_root")); ?>index.php/Home/Index/getSaveRateByChannel"><li id="li107">留存统计</li></a>
        </ul>
    </div>
    
    <div id="rightIframe" align="left">
    	<div id="rightHeader">
        	<div id="userDiv" align="left">
                	<ul>
                    	<li id="liUserName"><?php echo (session('username')); ?></li>
                        <a href="<?php echo (C("web_root")); ?>index.php/Home/User/toLogout"><li class="userOps">退出登录</li></a>
                        <li class="userOps" id="shortLi">收&nbsp;&nbsp;起</li>
                    </ul>
            </div>
        </div>
        <div id="masking">
        </div>
        <div id="chStyle" align="right">
			<ul>
    			<a href="<?php echo (C("web_root")); ?>index.php/Home/Index/<?php echo ($log1); ?>"><li id="chStyleli101"  class="chStyleli">按渠道</li></a>
        		<a href="<?php echo (C("web_root")); ?>index.php/Home/Index/<?php echo ($log2); ?>"><li id="chStyleli102" class="chStyleli">按区服</li></a>
                <li id="chStyleli105" class="chStyleli">
                	更换区服
                    <div id="serverList">
                    	<ul>
                        	<a href="<?php echo (C("web_root")); ?>index.php/Home/Index/setServer?serverid=6001"><li>初出江湖</li></a>
                            <a href="<?php echo (C("web_root")); ?>index.php/Home/Index/setServer?serverid=6002"><li>牛刀小试</li></a>
                            <a href="<?php echo (C("web_root")); ?>index.php/Home/Index/setServer?serverid=6003"><li>英雄豪杰</li></a>
                            <a href="<?php echo (C("web_root")); ?>index.php/Home/Index/setServer?serverid=6004"><li>兄弟情深</li></a>
                            <a href="<?php echo (C("web_root")); ?>index.php/Home/Index/setServer?serverid=6005"><li>初露锋芒</li></a>
                        </ul>
                    </div>  
                </li>
                <li id="chStyleli106" class="chStyleli"><?php echo ($servername); ?></li>
                <li id="chStyleli103" class="chStyleli">调整时间</li>
                <li id="chStyleli104">
                	<form action='<?php echo (C("web_root")); ?>index.php/Home/Index/setDate' method='post'>
    					<input type="text" name="theDay" class="text02" value="<?php echo (session('theDay')); ?>" /><input type="submit" value="ok!" class="button02" />
    				</form>
                </li>
    		</ul>
		</div>
    	<table class="tableA" border="1">
        <?php echo ($html); ?>
        </table>
    </div>
    
</div>

</center></body>
<script language="javascript">

setTimeout(function(){ $("body").css("opacity","1");},100);

var url=window.location.href;
var iframe=document.getElementById('iframe01');
    
$("#leftMenu").css("height",$(document).height()-20+'px');
$("#rightIframe").css("height",$(document).height()-20+'px').css("width",$(document).width()-300+'px');
$("#li101").css("background-color","#09F").css("color","#FFF");
$("#rightHeader").css("width",$(window).width()-300+'px');
$("#masking").css("width",$(window).width()-300+'px');
$("#opsItem").hide();


$("#ul01 li").mouseover(function(){
	$(this).animate({width:230},100);
}).mouseout(function(){
	$(this).animate({width:200},100);
});

$("#ul02 li").mouseover(function(){
	$(this).animate({width:210},100);
}).mouseout(function(){
	$(this).animate({width:200},100);
});

//时间设定
var timeNum=0;
$("#chStyleli103").click(function(){
	timeNum++;
	if(timeNum%2==1){
		$("#chStyle form").animate({width:210},200);
	}else{
		$("#chStyle form").animate({width:0},200);
	}
});
//chStyle背景更改
$('#<?php echo ($chStyleli); ?>').css('background-color','#069');

//ul01背景更改
if(url.indexOf("chargeByChannel")>0){             //充值记录按渠道分类
	reLibg();
	$("#li101").css("background-color","#09F").css("color","#FFF");
	$("#chStyleli105").css("width","0px").css("border","0px");
	$("#chStyleli106").css("width","0px").css("border","0px");
	
}else if(url.indexOf("chargeByServer")>0){        //充值记录按区服分类
	reLibg();
	$("#li101").css("background-color","#09F").css("color","#FFF");
	$("#chStyleli105").css("width","0px").css("border","0px");
	$("#chStyleli106").css("width","0px").css("border","0px");
	
}else if(url.indexOf("channelCharge")>0){         //渠道充值历史
	$("#chStyle").css("opacity",'0');
}else if(url.indexOf("getLevelLog")>0){           //角色等级记录
	reLibg();
	$("#li102").css("background-color","#09F").css("color","#FFF");
	$("#chStyleli101").css("width","0px").css("border","0px");
	$("#chStyleli102").css("width","0px").css("border","0px");
	$("#chStyle").css("opacity",'0');
	
}else if(url.indexOf("loginByChannel")>0){        //登录、创建角色统计 按渠道分类
	reLibg();
	$("#li103").css("background-color","#09F").css("color","#FFF");
	$("#chStyleli105").css("width","0px").css("border","0px");
	$("#chStyleli106").css("width","0px").css("border","0px");
	
}else if(url.indexOf("loginByServer")>0){         //登录、创建角色统计 按区服分类     
	reLibg();
	$("#li103").css("background-color","#09F").css("color","#FFF");
	$("#chStyleli105").css("width","0px").css("border","0px");
	$("#chStyleli106").css("width","0px").css("border","0px");
	
}else if(url.indexOf("getMission")>0){           //任务接收统计
	reLibg();
	$("#li104").css("background-color","#09F").css("color","#FFF");
	$("#chStyle").css('opacity','0');
	
}else if(url.indexOf("getConsume")>0){           //元宝消耗统计
	reLibg();
	$("#li105").css("background-color","#09F").css("color","#FFF");
	$("#chStyleli101").css("width","0px").css("border","0px");
	$("#chStyleli102").css("width","0px").css("border","0px");
	
}else if(url.indexOf("getPropGet")>0){           //物品产出统计
	reLibg();
	$("#li106").css("background-color","#09F").css("color","#FFF");
	$("#chStyleli101").css("width","0px").css("border","0px");
	$("#chStyleli102").css("width","0px").css("border","0px");
}else if(url.indexOf("getSaveRate")>0){           //物品产出统计
	reLibg();
	$("#li107").css("background-color","#09F").css("color","#FFF");
	$("#chStyleli105").css("width","0px").css("border","0px");
	$("#chStyleli106").css("width","0px").css("border","0px");
}else{
	$("#chStyleli105").css("width","0px").css("border","0px");
	$("#chStyleli106").css("width","0px").css("border","0px");
}

function reLibg(){
	$("#ul01 li").css("background-color","#FFF").css("color","#069");
}

//用户操作菜单
var opsnum=1;
$("#liUserName").click(function(e){
	opsnum++;
	if(opsnum%2==1){
		$(".userOps").animate({height:0,paddingTop:0},200);
	}else{
		$(".userOps").animate({height:30,paddingTop:7},200);
	}
});
$("#shortLi").click(function(e){
	opsnum++;
	$(".userOps").animate({height:0,paddingTop:0},200);
});

//区服选择列表
var serverListNum=0;
$("#chStyleli105").click(function(){
	serverListNum++;
	if(serverListNum%2==1){
		$("#serverList ul").animate({height:150},250);
		$("#chStyleli105").css("background-color","#069");
	}else{
		$("#serverList ul").animate({height:0},250);
		$("#chStyleli105").css("background-color","#888");
	}
});
//鼠标滚轮事件监听
function handle(delta) {
    var s = delta + ": ";
    if (delta <0){
		document.body.scrollLeft+=90;
	}
    else{
		document.body.scrollLeft-=90;
	}
}//from www.fengfly.com
function wheel(event){
    var delta = 0;
    if (event.wheelDelta) {
        delta = event.wheelDelta/120; 
        if (window.opera) delta = -delta;
    } else if (event.detail) {
        delta = -event.detail/3;
    }
    if (delta)
        handle(delta);
}
if (window.addEventListener)
window.addEventListener('DOMMouseScroll', wheel, false);
window.onmousewheel = document.onmousewheel = wheel;
</script>
</html> 包含模板-->
<html>
<head>
<title>practice</title>

</head>

<body>
<?php echo W('Cate/widget',array(5,'ThinkPHP'));?>
</body>